package cn.itsource.controller;

import cn.itsource.bean.OrderPetAcquisition;
import cn.itsource.query.OrderPetAcquisitionQuery;
import cn.itsource.service.IOrderPetAcquisitionService;
import cn.itsource.util.JsonResult;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 宠物订单类
 */
@RestController
@Api(tags = "宠物接单类", description = "宠物接单类")
@RequestMapping("/orderPetAcquisition")
public class OrderPetAcquisitionController {


    @Resource
    private IOrderPetAcquisitionService orderPetAcquisitionService;

    @PostMapping("/pagelist")
    public JsonResult getPage(@RequestBody OrderPetAcquisitionQuery query){
        return orderPetAcquisitionService.getPage(query);
    }


    @PostMapping("/sure")
    public JsonResult sureOrder(@RequestBody OrderPetAcquisition order){

        return orderPetAcquisitionService.sureOrder(order);
    }

}
